import Vue from 'vue';
import VRouter from 'vue-router'
Vue.use(VRouter);
export default new VRouter({
    routes:[
        {path:'/',redirect:'/index'},
        {path:'/index',component:resolve=>{require(['@/page/index'],resolve)}},
        {path:'/discover',component:resolve=>{require(['@/page/discover'],resolve)}},
        {path:'/order',component:resolve=>{require(['@/page/order'],resolve)}},
        {path:'/profile',component:resolve=>{require(['@/page/profile'],resolve)}},
        {path:'/shop',component:resolve=>{require(['@/page/shop'],resolve)}},
    ]
})
